<template>
<div class="customerServer-box">
  <nav-bar title="在线客服" />
  <div class="commission_list">
    <div class="list" @click="$router.push({path: '/customer/chat'})">
      <div class="avatar"></div>
      <div class="info bd-b">
        <div class="name">客服1</div>
        <div class="lastMsg">您好，您需要先充值才能抢单！</div>
      </div>
    </div>
    <div class="list">
      <div class="avatar"></div>
      <div class="info">
        <div class="name">客服2</div>
        <div class="lastMsg">您好，您需要先充值才能抢单！</div>
      </div>
    </div>
  </div>
</div>
</template>
<script>
export default {
  name: 'customerServer',
  data() {
    return {
      isLoading: false
    };
  },
  created() {
  },
  mounted() {
  },
  methods: {
    onRefresh() {
      setTimeout(() => {
        this.isLoading = false;
      }, 500);
    }
  }
};
</script>
<style lang="less" scoped>
.customerServer-box{
  height: calc(100% - 88px);
  .commission_list{
    background-color: #fff;
    padding-top: 12px;
    .list{
      display: flex;
      padding: 15px 30px 5px;
    }
    .avatar{
      width:90px;
      height:90px;
      background:rgba(244,244,244,1);
      background-image: url('../../assets/images/icon-kf-avatar.png');
      background-position: center center;
      background-size: contain;
      background-repeat: no-repeat;
      border-radius:10px;
      margin-right: 20px;
    }
    .info{
      flex: 1;
      padding-bottom:35px;
      .name{
        color: #212121;
        font-size: 32px;
      }
      .lastMsg{
        color: #999;
        font-size: 24px;
      }
    }
  }
}
</style>
